swap two numbers using the third variable